import axios from '../axios.js';
import { ORDERS } from './const.js'

export default {
    getOrders(params) {
        return axios({
            url: ORDERS + "/getOrders",
            method: "get",
            params
        });
    },


    disposeOrdersToCancel(data) {
        return axios({
            url: ORDERS + "/disposeOrdersToCancel",
            method: "post",
            data
        });
    },

    submitOrdersToCancel(data) {
        return axios({
            url: ORDERS + "/submitOrdersToCancel",
            method: "post",
            data
        });
    },


    changeOrderById(data) {
        return axios({
            url: ORDERS + "/changeOrderById",
            method: "post",
            data
        });
    },

}